package com.hsj.common.system.convert;

import com.hsj.common.system.entity.SysUserRoleDo;
import com.hsj.common.system.vo.request.ReqSysUserRoleCreateVo;
import com.hsj.common.system.vo.request.ReqSysUserRoleUpdateVo;
import com.hsj.common.system.vo.response.RespSysUserRoleVo;
import org.mapstruct.InjectionStrategy;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * 用户角色关系 Vo转换类
 * @Author: Czy
 * @Date: 2024-01-23 23:03:26
 * @Email: 314170122@qq.com
 */
@Mapper(componentModel = "spring", injectionStrategy = InjectionStrategy.CONSTRUCTOR)
public interface SysUserRoleConvert {

    SysUserRoleDo voToDo(ReqSysUserRoleCreateVo vo);

    SysUserRoleDo voToDo(ReqSysUserRoleUpdateVo vo);

    RespSysUserRoleVo doToVo(SysUserRoleDo sysUserRole);

    List<RespSysUserRoleVo> doToVo(List<SysUserRoleDo> sysUserRoleList);
}
